<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<script charset="utf-8" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js"></script>

<script language="javascript">
</script>
<body>
<form method="post" action="<?php echo $this->url($this->baseUrl, "server", "doedit");?>" >
<input type="hidden" name="id" value="<?php echo $this->id;?>" />
<input type="hidden" name="where" value="<?php echo $this->where;?>" />

<table class="tableA"  width="32%" border="1" align="center">
  <tr>
    <td colspan="2" align="center">编辑服务器</td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">服务器名称</td>
    <td width="91%"><input name="name" type="text" id="name" size="20" value="<?php echo htmlspecialchars($this->info['name']);?>"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">服务器IP</td>
    <td width="91%"><input name="ip" type="text" id="ip" size="20" value="<?php echo htmlspecialchars($this->info['ip']);?>"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">服务器线路</td>
    <td width="91%"><input name="routeline" type="text" id="routeline" size="10" value="<?php echo htmlspecialchars($this->info['routeline']);?>"/>
    <select name="_rl" id="_rl" onchange="$('#routeline').val(this.value);">
    <option value="">选择线路</option>
    <option value="电信">电信</option>
    <option value="网通">网通</option>
    <option value="双线">双线</option>
    </select></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">开区时间</td>
    <td width="91%"><input name="sdatetime_day" type="text" id="sdatetime_day" size="10" value="<?php echo date("Y-m-d", strtotime($this->info['sdatetime']));?>"/>
<select name="sdatetime_hour" id="sdatetime_hour">
<?php
for($i=0; $i < 24; $i++){
	$selected = '';
	if ($i == (int)date("H", strtotime($this->info['sdatetime'])))
		$selected = 'selected="true"';
	
	echo "<option {$selected} value=\"{$i}\">{$i}</option>\n";
}
?>
</select>
时
<select name="sdatetime_minute" id="sdatetime_minute">
    <option value="00" <?php if ((int)date("i", strtotime($this->info['sdatetime'])) == 0) echo 'selected=true';?>>00</option>
    <option value="30" <?php if ((int)date("i", strtotime($this->info['sdatetime'])) == 30) echo 'selected=true';?>>30</option>
</select>分
    </td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">客服qq</td>
    <td width="91%"><input name="qq" type="text" id="qq" size="20"  value="<?php echo htmlspecialchars($this->info['qq']);?>"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">版本介绍</td>
    <td width="91%"><input name="intro" type="text" id="intro" size="50"  value="<?php echo htmlspecialchars($this->info['intro']);?>"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">主页地址</td>
    <td width="91%"><input name="url" type="text" id="url" size="50" value="<?php echo htmlspecialchars($this->info['url']);?>"/></td>
  </tr><!--
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">广告期限</td>
    <td width="91%"><input name="ggdate" type="text" id="ggdate" size="10" value="<?php echo htmlspecialchars($this->info['ggdate']);?>"/>天</td>
  </tr>-->
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">全天推荐</td>
    <td width="91%"><input type="checkbox" <?php if ($this->info['isyellow'] == 1){?>checked="checked"<?php }?> name="isyellow" id="isyellow" value="1"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">精品全天推荐</td>
    <td width="91%"><input type="checkbox" name="isdayfine" id="isdayfine" <?php if ($this->info['isdayfine'] == 1){?>checked="checked"<?php }?>  value="1"/></td>
  </tr><!--
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">精品推荐</td>
    <td width="91%"><input type="checkbox" name="isfine" id="isfine" <?php if ($this->info['isfine'] == 1){?>checked="checked"<?php }?>  value="1"/></td>
  </tr>
    <tr>
    <td width="9%" class="tdA" nowrap="nowrap">精品顺序</td>
    <td width="91%"><input name="fineseq" type="text" id="fineseq" size="10" value="<?php echo $this->info['fineseq'];?>"/></td>
  </tr>-->
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">全天固顶</td>
    <td width="91%"><input type="checkbox" name="isbest" id="isbest" <?php if ($this->info['isbest'] == 1){?>checked="checked"<?php }?> value="1"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">通宵固顶</td>
    <td width="91%"><input type="checkbox" name="isfinehot" id="isfinehot" <?php if ($this->info['isfinehot'] == 1){?>checked="checked"<?php }?> value="1"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">通宵推荐</td>
    <td width="91%"><input type="checkbox" name="ishot" id="ishot" <?php if ($this->info['ishot'] == 1){?>checked="checked"<?php }?> value="1"/></td>
  </tr>
  <tr>
    <td width="9%" class="tdA" nowrap="nowrap">通过审核</td>
    <td width="91%"><input type="checkbox" name="ischeck" id="ischeck" <?php if ($this->info['ischeck'] == 1){?>checked="checked"<?php }?> value="1"/></td>
  </tr>

  <tr>
    <td colspan="2" align="center" class="tdI"><input class="btn_submit"   type="submit" name="Submit2" value="确认"/>
    <input class="btn_std"  type="button" name="Submit22" value="返回" onclick='javascript:history.back(-1);'/></td>
  </tr>
</table>
</form>
</body>
</html>